def buildParameterString
  if ($ss.cell($line,$PARAMETER2) == "") or ($ss.cell($line,$PARAMETER2) == nil) then
    $parameters = $ss.cell($line,$PARAMETER1)
  else
    $parameters = $ss.cell($line,$PARAMETER1) + "|" + $ss.cell($line,$PARAMETER2)
  end
end
def buildExpectedResult
  if ($ss.cell($line,$EXPECTED_RESULT) == "") or ($ss.cell($line,$EXPECTED_RESULT) == nil) then
   $expectedResult = " "
  else
    $expectedResult = $ss.cell($line,$EXPECTED_RESULT)
  end
end
def event
  buildParameterString
  $HTMLreport.addtoReport($test_report, $ss.cell($line,$COMMAND), 'EVENT', $parameters, "&nbsp;")
  $XMLreport.addtoReport($test_report, $ss.cell($line,$COMMAND), 'EVENT', $parameters, "&nbsp;")
end
def pass
  buildParameterString
  buildExpectedResult
  $HTMLreport.addtoReport($test_report, $ss.cell($line,$COMMAND), 'PASSED', $parameters, $expectedResult)
  $XMLreport.addtoReport($test_report, $ss.cell($line,$COMMAND), 'PASSED', $parameters, $expectedResult)
end
def fail
  buildParameterString
buildExpectedResult
  $HTMLreport.addtoReport($test_report, $ss.cell($line,$COMMAND), 'FAILED', $parameters, $expectedResult)
  $XMLreport.addtoReport($test_report, $ss.cell($line,$COMMAND), 'FAILED', $parameters, $expectedResult)
end
def info
  buildParameterString
  $HTMLreport.addtoReport($test_report, $ss.cell($line,$COMMAND), 'INFO', $parameters, "&nbsp;")
  $XMLreport.addtoReport($test_report, $ss.cell($line,$COMMAND), 'INFO', $parameters, "")
end
def error
  buildParameterString
  buildExpectedResult
  $HTMLreport.addtoReport($test_report,"NOT FOUND " + $ss.cell($line,$COMMAND), 'ERROR', $parameters, $expectedResult)
  $XMLreport.addtoReport($test_report,"NOT FOUND " + $ss.cell($line,$COMMAND), 'ERROR', $parameters, $expectedResult)
end